package com.zsh.demo.service;

import com.zsh.demo.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Queue;


public interface UserService {
    public User findByUser(String username, String password);
    public List<User> getAllUser( String username,  Integer pageStart,  Integer pageSize);
    public Integer getUserCounts(String username);
//    public List<User> getAllUser(Queue queue);
    public Integer updateState(Integer id,Boolean state);
    public Integer addUser(User user);
    public Integer deleteUser(Integer id);
    public User getUser(Integer id);
    public Integer updateUser(User user);
}
